<template>
    <!--ASN明细-->
    <div id="AsnDetails">
        <v-details :detailData="data.detailData" :inputConfig="inputConfig" :rules="rules"></v-details>
    </div>
</template>

<script>

    import details from 'commons/Detail'
    import baseMixin from "@/mixins/BaseMixin";

    export default {
        name: "AsnDetails",
        mixins: [baseMixin],
        props: {
            data: {
                type: Object
            }
        },
        data() {
            return {
                addflag: true,
                rules: {},
            }
        },
        computed: {
            inputConfig() {
                return [
                    [
                        {
                            type: "input",
                            label: "制造商SKU",
                            props: "manufacturer_sku",
                            disabled: this.addflag
                        },
                        {
                            type: "input",
                            label: "零售SKU",
                            props: "retail_sku",
                            disabled: this.addflag
                        },
                        {
                            type: "input",
                            label: "运费率级别",
                            props: "tariff_class",
                            disabled: this.addflag
                        },
                        {
                            type: "input",
                            label: "运费率说明",
                            props: "tariff_desc",
                            disabled: this.addflag
                        },
                        {
                            type: "input",
                            label: "Nmfc 类",
                            props: "nmfc_class",
                            disabled: this.addflag
                        },
                        {
                            type: "input",
                            label: "危险分类",
                            props: "haz_class",
                            disabled: this.addflag
                        },

                    ],
                    [
                        {
                            type: "input",
                            label: "行名称",
                            props: "item_line_name",
                            disabled: this.addflag
                        },
                        {
                            type: "input",
                            label: "行说明",
                            props: "item_line_desc",
                            disabled: this.addflag
                        },
                        {
                            type: "input",
                            label: "种类名称",
                            props: "item_cat_name",
                            disabled: this.addflag
                        },
                        {
                            type: "input",
                            label: "种类说明",
                            props: "item_cat_desc",
                            disabled: this.addflag
                        },
                        {
                            type: "input",
                            label: "品牌名称",
                            props: "item_brand_name",
                            disabled: this.addflag
                        },
                        {
                            type: "input",
                            label: "品牌说明",
                            props: "item_brand_desc",
                            disabled: this.addflag
                        },
                    ],
                    [
                        {
                            type: "input",
                            label: "货品分类",
                            props: "item_class",
                            disabled: this.addflag
                        },
                        {
                            type: "input",
                            label: this.$t('config.freightclass'),
                            props: "fr_class",
                            disabled: this.addflag
                        },
                        {
                            type: "input",
                            label: "库存分类",
                            props: "inv_class",
                            disabled: this.addflag
                        },
                    ]
                ]
            }
        },
        methods: {},
        mounted() {
        },
        watch: {},
        components: {
            'v-details': details
        }
    }
</script>

<style scoped>

</style>
